<?php	
if(isset($_GET['q'])) {
	$query = $_GET['q'];
}
$con = file_get_contents('http://search.twitter.com/search.json'. $query);
$json = json_decode($con);

var_dump($json);